home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 February / Gamestar_81_2006-02_dvd.iso / Red Shark / Common / Hangar.script < prev    next >
Encoding:
Text File  |  2001-09-28  |  1.2 KB  |  52 lines

  1. //-------------------------------------------------------------------
  2. //
  3. //  This code is copyright 2001 by G5 Software.
  4. //  Any unauthorized usage, either in part or in whole of this code
  5. //  is strictly prohibited. Violators WILL be prosecuted to the
  6. //  maximum extent allowed by law.
  7. //
  8. //-------------------------------------------------------------------
  9.  
  10. class CHangarMesh
  11. {
  12.   string MeshFile = "Models/B_Hangar.mesh";
  13.   string SkinFile = "Models/B_Hangar.skin";
  14. }
  15.  
  16. class CHangarStateControl
  17.   extends CUnitLifeControl, CExplosionGenerator
  18. {
  19.   void CHangarStateControl()
  20.   {
  21.     CUnitLifeControl(50000.0);
  22.     m_DestroyPause = 2.5;
  23.     m_ExplosionId  = "EXPLID_HangarExplosion";
  24.   }
  25.  
  26.   void CreateDetonateEffects()
  27.   {
  28.   }
  29. }
  30.  
  31. // Building without ground control (for use in villages)
  32. class CBaseHangar extends CBuilding, CUnitWithStateControl
  33. {
  34.   void CBaseHangar()
  35.   {
  36.     InitializeModelAsStatic("CHangarMesh");
  37.     CUnitWithStateControl("CHangarStateControl");
  38.     Core_AddClassificator(CLASSIFICATOR_NOTVISIBLEONRADAR);
  39.   }
  40. }
  41.  
  42. // Single game object
  43. class CMountedHangar extends CBaseHangar
  44. {
  45.   void CMountedHangar()
  46.   {
  47.     InitializeGroundControl();
  48.   }
  49. }
  50.  
  51.  
  52.